package co.baiku.boot.v3.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 用户授权状态信息
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class WeixinPayScoreUserAuthorizeState implements Serializable {
    private String appid;
    private String mchid;
    @JsonProperty("service_id")
    private String serviceId;
    private String openid;
    /**
     * 回调状态
     * <pre>
     * 1、USER_OPEN_SERVICE：授权成功
     * 2、USER_CLOSE_SERVICE：解除授权成功
     * 示例值：USER_OPEN_SERVICE
     * </pre>
     */
    @JsonProperty("user_service_status")
    private String userServiceStatus;
    /**
     * 服务授权/解除授权时间
     * <pre>
     * 服务授权/解除授权成功时间。
     * 示例值：20180225112233
     * </pre>
     */
    @JsonProperty("openorclose_time")
    private String openorcloseTime;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUserServiceStatus() {
        return userServiceStatus;
    }

    public void setUserServiceStatus(String userServiceStatus) {
        this.userServiceStatus = userServiceStatus;
    }

    public String getOpenorcloseTime() {
        return openorcloseTime;
    }

    public void setOpenorcloseTime(String openorcloseTime) {
        this.openorcloseTime = openorcloseTime;
    }
}
